package com.example.huadu_server.house.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class HouseUploadDTO {
    @NotBlank(message = "房屋标题不能为空")
    private String title;

    private String description;

    @NotBlank(message = "房屋地址不能为空")
    private String address;

    @NotBlank(message = "房屋类型不能为空")
    private String houseType;

    @NotBlank(message = "配套设施不能为空")
    private String facilities;

    private String community;

    @NotNull(message = "租金不能为空")
    private Double price;

    @NotNull(message = "面积不能为空")
    private Double area;

    @NotNull(message = "楼层不能为空")
    private Integer floor;

    @NotNull(message = "租期不能为空")
    private String lease;

    @NotNull(message = "支付方式不能为空")
    private String payType;

    private String status;

    @NotNull(message = "交通不能为空")
    private Integer traffic;

    @NotNull(message = "商圈不能为空")
    private String businessArea;

    @NotNull(message = "附近地铁站不能为空")
    private String subwayStation;

    @NotNull(message = "经度不能为空")
    private Double longitude;

    @NotNull(message = "纬度不能为空")
    private Double latitude;

    @NotNull(message = "必须上传至少一张图片")
    private List<String> imageUrls;

    @NotNull(message = "请上传产权证明")
    private String titleDeed;
}
